Polynomial solutions of the Schrodinger equation for the generalized Woods-Saxon potential