Energy and polarization based on-line interference mitigation in radio interferometry