Buckling of composite pipes