Flexible Beam Manipulations by Reconfigurable Intelligent Surface With Independent Control of Amplitude and Phase