The tanh method: II. Perturbation technique for conservative systems