An equilibrium bifurcation approach to the compressive failure of microcracked elastic solids