Third-order elastic constants from molecular dynamics: Theory and an example calculation.