Convective heat transport in stratified atmospheres at low and high Mach number