The Role of Excited States in Determining β-lactamase Function and Bacterial Fitness