Computation of the radical of polynomial ideals over fields of arbitrary characteristic