Analysis and Optimization of Reconfigurable Intelligent Surfaces Based on S-Parameters Multiport Network Theory | Synapse