Text this: Globally Optimal Training of Spiking Neural Networks via Parameter Reconstruction