Gravar-mail: A varying-coefficient method for analyzing longitudinal clinical trials data with nonignorable dropout