X-rays help understand how mechanical action can lead to greener chemistry