Text this: Optical and optoelectronic characterization of lead halide perovskites and its solar cells