Online Convex Optimization and Integral Quadratic Constraints: An automated approach to regret analysis