Weighted Regularized Inversion of Magnetotelluric Data