Thermal constraints on grazing and browsing herbivores