Pressure Effects on the Electronic and Optical Properties in Low-Dimensional Metal Halide Perovskites.