Simulation of electron-transfer self-exchange in cytochromes c and b5