Convex Learning of Multiple Tasks and their Structure