Food web structure and habitat loss