Integrating Software-Defined Metasurfaces into Wireless Communication Systems: Design and Prototype Evaluation