An ab initio study of the photodissociation of nitrosoalkanes and nitrosamines.