Integrability of the Paul trap and generalized van der Waals Hamiltonians