o-Minimal Expansions of the Real Field: A Characterization, and anApplication to Pfaffian Closure