U.S. military working on plan to train thousands of Libyans