Sources: Afghan detainees planned attacks on U.S.