Sensing RISs: Enabling Dimension-Independent CSI Acquisition for Beamforming