Major-General William Starke Rosecrans, U.S. Army