Understanding resident ratings of teaching in the workplace: a multi-centre study