Morphological evolution of the hosts of far-infrared/submillimeter galaxies