X-ray extinction from interstellar dust. Prospects of observing carbon, sulfur, and other trace elements