Oxygen K-edge XANES investigation of NicMg(1-c)O solid solutions.