Fast coding method of metasurfaces based on 1D coding in orthogonal directions