Constructions of new families of nonbinary quantum codes