Disentangling the spatial and temporal causes of decline in a bird population