Planetary nebulae as tracers of galaxy stellar populations