Full-waveform inversion using level set and cut elements for sharp-interface problems