Thermospheric mass density variations during geomagnetic storms and a prediction model based on the merging electric field