Bifurcation analysis of unbending and eversion of a bilayer