First-order logic and automated theorem proving (2nd ed.)