Ultrasonic characterization of plastic foams via measurements with static pressure variations