Extension of the spectral-transform method for solving nonlinear evolution equations and related conservation laws