Modulation of x-ray absorption cross-section by optical radiation