A study on axisymmetric cavities in supersonic flow