Level repulsion in constrained Gaussian random-matrix ensembles