An automatic DSP-based classifier for impairments on {QAM} modulations