Pathway-dependent electron transfer for rod-shaped perylene-derived molecules adsorbed in nanometer-size TiO2 cavities