Structural, magnetic, and electrical studies on polycrystalline transition-metal-doped BiFeO3 thin films