Discrete curvature-based shape configuration of composite pipes for local buckling detection based on fiber Bragg grating sensors