First-principles study of pressure-induced structural phase transitions in MnF2