Interval inversion of borehole data for petrophysical characterization of complex reservoirs