Coexistence of ferroelectricity and metallicity in M-doped BaTiO3 (M = Al, V, Cr, Fe, Ni, and Nb): First-principles study