Elastic buckling of 2D cellular structures