Fundamentals of convex optimization for compositional data