A hybrid approach to relativistic heavy-ion collisions at the RHIC BES energies