Modeling the X-ray emission from the nearest jets: HH 154 and DG Tau