Role of the topology on the magnetic properties of mixed-valence trinuclear manganese clusters