Extragalactic planetary nebulae: Tracers of the chemical evolution of nearby galaxies