Design of transient tests for the diagnosis of transmission mains