Changes in electronic structure by Li ion deintercalation in LiNiO2 from nickel L-edge and O K-edge XANES