Molecular interactions of degradable and non-degradable polymers with hydroxyapatite influence mechanics of polymer-hydroxyapatite nanocomposite biomaterials