Everyone in Scotland would be more than £500 better off if productivity rose to the UK national average