Dimuon production in ultrarelativistic nuclear collisions and QCD phase transitions