Validity of the second law in nonextensive quantum thermodynamics.