Inversion of seismic refraction and wide-angle reflection traveltimes for three-dimensional layered crustal structure