Analysis of lock-exchange gravity currents over smooth and rough beds