Similar Items: Globally Optimal Training of Spiking Neural Networks via Parameter Reconstruction