Consequences of spatial autocorrelation for niche‐based models