AC current measurement