Varactor-loaded metagratings for the dynamic manipulation of the diffracted waves