Effect of quantum confinement of surface electrons on an atomic motion on nanoislands