The science behind Thursday's snowstorm