Flat optics based on dielectric gradient metasurfaces