Added 'invariants' function that computes the three tensor invariants (i.e., hydrostatic pressure, von Mises stress and J3 for stress)
Merge branch 'master' of github.com:libAtoms/matscipy
Avoid divice by zero in pressure computation. Added Hertz displacement field.