Ac sensing circuit