Modelling Ecological Presence–absence Data along an Environmental Gradient: Threshold Levels of the Environment