Biological and Physico-Chemical Properties of Composite Layers Based on Magnesium-Doped Hydroxyapatite in Chitosan Matrix