Regularization method and its application on inverse problem for the interpretation of layered earth in resistivity method