Generalized circular ensemble of scattering matrices for a chaotic cavity with nonideal leads.