Measuring the quality of residential care