How does the switching mechanism of the pulsating sprinkler work?