The evolution of traits and functions in herbivorous coral reef fishes through space and time