A characterization of the extremal distributions of optimal normal bases