Real-time diagnosis of co-injection molding using ultrasound