The Generalized Syndrome Polynomial and its Application to the Efficient Decoding of Reed-Solomon Codes Based on Gmd Criterion