Text this: Metal-halide perovskites under pressure: Effect of anisotropic deformation on optoelectronic properties