Linear stability analysis of a sub-to-supercritical jet