A data-driven approach to power converter control via convex optimization