The energetic basis for hydroxyapatite mineralization by amelogenin variants provides insights into the origin of amelogenesis imperfecta