Ultrasonic characterization performed during chemical foaming of cross-linked polyolefins