Predicting the impacts of edge effects in fragmented habitats