Which factor determines whether precipitation will be in the form of rain or snow?