First principles study of structural, elastic, electronic and optical properties of the cubic perovskite BaHfO3