Nanocapsules with functionalized surfaces and walls