Formation of Hadean granites by melting of igneous crust