Defining and measuring the quality of working life