A unified method for signal parameter estimation of arbitrarily distorted single-phase grids with DC-offset