The self-assembly mechanism of fibril-forming silk-based block copolymers.