Artificial enamel induced by phase transformation of amorphous nanoparticles