On the transformations generated by the electromagnetic spin and orbital angular momentum operators