A general approach forcing convexity of ply angle optimization in composite laminates