Structural, electronic and optical properties of SrCl2 under hydrostatic stress