Excitonic phases in the two-orbital Hubbard model: Roles of Hund's rule coupling