Factors associated with quality of life for children affected by parental illness or substance abuse