Optimal Operation of Distribution Grids: A System of Systems Framework