Measuring habitat availability for dispersing animals