d-invariants of branched double covers of links