An interferometric determination of the refractive part of optical constants for carbon and silver across soft X-ray absorption edges