A novel surface-sensitive X-ray absorption spectroscopic detector to study the thermal decomposition of cathode materials for Li-ion batteries