A geometric characterization of free formations of profinite groups