In-medium effects on K0 mesons in relativistic heavy-ion collisions