Defect measures on graded Lie groups