Modeling the residual shrinkage during lithographic processing on flexible polymer substrates