Effect of excess charge carriers and fluid medium on the magnitude and sign of the Casimir-Lifshitz torque