Thomas Aquinas, Theologian