Layer-wise approach for the bifurcation problem in laminated composites with delaminations