Direct synthesis of hollow polymeric nanocapsules of variable shell thickness and rigidity