Deformation formulas and their applications to spectral and evolutional inverse problems