Understanding the Nature of Potassium in Ion-Batteries and Heterogenous Catalysis using Advanced X-ray Characterisation