Structural, elastic, electronic and optical properties of new layered semiconductor BaGa2P2