Fluorescent-x-ray-interference effect in layered materials.