Event-by-event fluctuations of particle ratios in heavy-ion collisions