Impact of metal substitutions for cobalt in YBaCo4O7