Development of ferromagnetism in the doped topological insulatorBi2x