fixed bug in estimating skin depth in ws3dinv and modem