Understanding spatial effects in species distribution models