Crystal and electronic structure changes during the charge-discharge process of Na 4 Co 3 (PO 4 ) 2 P 2 O 7