Patterning thin polymer films by surface-directed dewetting and pattern transfer