A general theoretical model for electron transfer reactions in complex systems