Heavy fermions in transition metals and transition-metal oxides