Estimating transformer parameters for partial discharge location