On the growth of instabilities in groundwater due to temperature and salinity gradients