Molecular line emission in NGC 1068 imaged with ALMA. II. The chemistry of the dense molecular gas