The surge of troops sent to Afghanistan encountered soaring numbers of bombs hidden in paths and roads over the last year — and a corresponding jump in casualties. But as…