Developing Laboratory-Based X-ray Spectroscopies for Energy and Materials Research spectroscopy