Optimization of parameters for semiempirical methods I. Method | Synapse