Factors related to the nursing undergraduate’s quality of life