Sprayers and sprinklers for irrigation