Algorithm to calculate the field and temperature dependence of average electron injection velocities from non-planar metallic cathodes | Synapse