Spectrophotometry of planetary nebulae. II. Chemical abundances.