Synthesis, structural and optical characterization of APbX3 (A=methylammonium, dimethylammonium, trimethylammonium; X=I, Br, Cl) hybrid organic-inorganic materials