Dissipation of configurational forces in defective elatic solids