An unsupervised machine-learning-based shock sensor for high-order supersonic flow solvers