Beamforming Optimization for Active RIS-Aided Multiuser Communications With Hardware Impairments