Rapid photochromic nanopatterns from block copolymers