A generalized closed form relation for BER of QPSK/M-QAM over fading channel