Preparation of photo-patterned polymer–hydroxyapatite composites