The removal of beta particles in the measurement of X-rays with a Si(Li) detector