Equation of state, elasticity, and shear strength of pyrite under high pressure