Directed self-assembly of block copolymers for the fabrication of nanomechanical structures