Three-dimensional anisotropic full-waveform inversion