Why water freezes at a range of temperatures