The mid- and far-infrared colours of AGB and post-AGB stars