Temporal color mixing and dynamic beam shaping with silicon metasurfaces