A laboratory-based multifunctional near ambient pressure X-ray photoelectron spectroscopy system for electrochemical, catalytic, and cryogenic studies.