Courts uphold firing of Pennsylvania cop who lost sense of smell