Allow configuration of minimum energy threshold

Hi dhotson

Please accept this humble backward-compatible change that allows one to configure the minimum energy threshold. 

(I found that increasing the threshold sped up the layout for graphs of over 30 nodes. I'm using just the springy layout provider with custom UI in ThreeJS.)

All the best

Daniel