Lifetime estimation of corona-resistance wire for electrical machines operating under the partial discharge regime