Gender identity and optimism as the determinants of job satisfaction among different occupational groups