A limited-memory quasi-Newton inversion for 1D magnetotellurics