What affects the perminant ice layer needed for glaciers to form?