Exemplar-based Pattern Synthesis with Implicit Periodic Field Network