Selection rules for the orbital angular momentum of optically-produced THz radiation