Electronic structure of BiFe 1-x Mn x O 3 thin films investigated by X-ray absorption spectroscopy