Intermediate valence to Kondo behavior in Yb3T4Ge13 and YbT3M7 compounds