Pre-competition anxiety and performance in female high school swimmers: a test of optimal function theory.