Beamforming and fronthaul compression design for intelligent reflecting surface aided cloud radio access networks