TIP-OPC: a new topological invariant paradigm for pixel based optical proximity correction