Energy detection for spectrum sensing in cognitive radio