Microscopy and spectroscopy with X-rays for studies in the environmental sciences