A two-state model for the calculation of ultrasonic attenuation in pure metals