ath5k: Update gain_F calibration code and add documentation