Two-loop electroweak corrections for four-fermion processes at LHC and ILC