Theory of excitation energy transfer: from structure to function