Modeling thermal stress in thin films produced by photonic curing