Seismic waveform inversion in the frequency domain; Part 1, Theory and verification in a physical scale model