The stability analysis of two layers in a supercritical pure fluid: Rayleigh–Taylor-like instabilities