Despite the failures in Egypt, Napoleon returned to a hero's welcome