Automated Termination Proofs for Logic Programs by Term Rewriting