Non-isothermal buoyancy-driven exchange flows in inclined pipes