Solubility of molecular hydrogen in silicate melts and consequences for volatile evolution of terrestrial planets