Semimetal–superfluid quantum phase transitions in 2D and 3D lattices with Dirac points