Direct inversion of surface wave dispersion for three-dimensional shallow crustal structure based on ray tracing: methodology and application