What determines where a lake forms