Soft X-ray XANES studies of various phases related to LiFePO4 based cathode materials