The influence of bed roughness on the dynamics of gravity currents