Core competencies in teaching and training for doctors in Scotland: a review of the literature and stakeholder survey