Seismic modeling and imaging in complex media using low-rank approximation