There is russian book called "Unknown Hidrogen"[1] and reflection on it in [2]. In short Earth core is much like iron + hidrogen. Hidrogen lefts core and travels to crust. Hidrogen bounds with oxygen and gives water.
I thing Google Translate will translate article well enough.