A path-independent integral for transient crack problems