Rapid functional divergence after small-scale gene duplication in grasses