Controlling the degradation rate of AZ91 magnesium alloy via sol-gel derived nanostructured hydroxyapatite coating.