Integration of stationary equations for KdV multisolitons