X-Ray attenuation coefficients at different energies and the validity of the mixture rule for compounds around the absorption edge