Design and optimization of reconfigurable intelligent surfaces for enhanced wireless communication systems