libbladeRF: introduce optimal gain functions