Phase transition and thermodynamic stability in extended phase space and charged Hořava–Lifshitz black holes