Variational principles for complex conductivity, viscoelasticity, and similar problems in media with complex moduli | Synapse