The energy characteristics of wave propagation through interfaces of media with complex parameters