Oxidation of magmas during gain and loss of H2O recorded by trace elements in zircon