A blow-up criterion for the compressible liquid crystals system