Interval inversion of multiwell logging data for estimating laterally varying petrophysical parameters and formation boundaries