Stepwise Light-Induced Dual Compaction of Single-Chain Nanoparticles.