African-Americans in the United States military before desegregation