Two-loop correction to weak-interaction parameters due to a heavy fermion doublet