A molecular density functional theory approach to electron transfer reactions