Convex relaxations for robust identification of hybrid models