Linear stability analysis of salt fingers with surface evaporation or warming