An optimal control formulation of the Blaschke-Lebesgue theorem