Ionization stratification and chemical abundances in the planetary nebula NGC 7662.