Text this: A quadratic convex approximation for optimal operation of battery energy storage systems in DC distribution networks