Plans for Scottish medical graduates to work minimum term for NHS come under attack