An extended Ritz formulation for buckling and post-buckling analysis of cracked multilayered plates