Self-assembly of block copolymers in thin films