Dependence of flow observables in heavy-ion collisions on the symmetry energy and the in-medium nucleon–nucleon interaction