Donor deactivation in silicon nanostructures