Quantum-mechanical simulations of pressure effects on MgIn2S4 polymorphs