Metagratings for Efficient Wavefront Manipulation