Mesophilic enzyme function at high temperature: molecular dynamics of hyperthermophilic and mesophilic pyrophosphatases