Regularity for multi-phase variational problems