Computation of parameters of models for power-grid synchronization dynamics