Least-squares Reverse-time migration