Configurational entropy as a probe of the stability condition of compact objects