Reconfigurable intelligent surface aided wireless systems