Performance analysis and implementation details of the Energy Conserving Semi-Implicit Method Code (ECsim)