Unified approach for polymeric patterning via controlling the propagation of frontal photopolymerization waves