Constraints on rotation of B-type stars from the nitrogen abundance