The reverse time migration technique coupled with finite element methods