Phasing macromolecular structures with UV-induced structural changes.