Rheological and morphological study of the phase inversion in reactive polymer blends