Solution of the direct problem of 2D seismic exploration