Facile in situ synthesis of stable luminescent organic–inorganic lead halide perovskite nanoparticles in a polymer matrix