Pulse-Coupled Oscillator Networks: Achieving Phase Continuity And Learning Optimal Control In Physical Systems