A detailed census of variable stars in the globular cluster NGC 6333 (M9) from CCD differential photometry