UV degradation of pharmaceuticals