Structural characterization of bulk and nanoparticle lead halide perovskite thin films by (S)TEM techniques