A one-pot approach using recyclable template to prepare dual-responsive yolk–shell or Janus-like nanoparticles