X-ray Absorption and Optical Extinction in Interstellar Space