Modular and dynamic approaches to the formation of single-chain polymer nanoparticles