Syntheses, applications, and transformations of 2D and 3D lead halide perovskites for photovoltaics and other energy technologies