Ultrasonic attenuation in microemulsions and structural transitions