presidents that served in the military