Metasurface for controlling the reflection and transmission wavefront independently