Dynamic Beam Steering with Reconfigurable Metagratings