Electrodeposition of metallic and semiconducting nanocentres