Ab initio modeling of protein/biomaterial interactions: competitive adsorption between glycine and water onto hydroxyapatite surfaces