The importance of amino acid interactions in the crystallization of hydroxyapatite