Text this: Diagnosing direct-drive, shock-heated, and compressed plastic planar foils with noncollective spectrally resolved x-ray scattering