Electronic and nuclear contributions to dechannelling