Anomalous Nernst effect and field-induced Lifshitz transition in the Weyl semimetals TaP and TaAs