Linear and non-linear perturbations in dark energy models