Three-dimensional transient elastodynamic inversion using an error in constitutive relation functional