Job satisfaction as a unified mechanism for agent behaviour on a labour market with referral hiring