Structural stabilities, electronic and optical properties of CaF2 under high pressure: A first-principles study