Resource Analysis driven by (Conditional) Termination Proofs