Estimating multi-index models with response-conditional least squares