Reliable control of filament formation in resistive memories by self-assembled nanoinsulators derived from a block copolymer.