Singularity-free evolution from one configuration to another in serial and fully-parallel manipulators