Snell's law of refraction observed in thermal frontal polymerization.