Decay of deformed and superdeformed nuclei formed in heavy ion reactions