Comparing national patterns of medical specialization: a contribution to the theory of professions