Quintom cosmologies with arbitrary potentials