Exploration of materials electrochemistry in rechargeable batteries using advanced in situ/operando x-ray absorption spectroscopy