Modelling of the buckling of a diaphragm–spine structure for a wave energy converter