avfilter/af_afade: improve accuracy and speed of gain computation