How synchrotron light is generated