Liouville theorems and a priori estimates for elliptic semilinear equations