Constraining snowmelt in a temperature-index model using simulated snow densities