Hydroxyapatite surfaces in interaction with biomolecules: a periodic B3LYP approach