Program UR: General purpose code for synchrotron radiation calculations