Design of metasurfaces in 3D for omnidirectional band gaps: The scalar wave case