Theory of laser-induced adiabat shaping in inertial fusion implosions: The relaxation method