Distribution of specialist and generalist species along spatial gradients of habitat disturbance and fragmentation