A scanning angle energy-dispersive X-ray diffraction technique for high-pressure structure studies in diamond anvil cells