Convexity Conditions for Rotationally Invariant Functions in Two Dimensions