Case-mix and variation in specialist referrals in general practice