An energy efficient traffic shaping algorithm for Ethernet-based multimedia industrial traffic