Inclusive fitness for traits affecting metapopulation demography