Dilepton production in heavy-ion collisions