Hamilton, Mercedes fastest in second practice for German GP