QAM classification based on cosine moments with limited signal constellation