The mechanism and kinetics of the transformation from marcasite to pyrite: in situ and ex situ experiments and geological implications