The dynamics of polar vortices and jets on Mars and beyond: investigating large-scale atmospheric circulation on terrestrial planets