Magnetism and electronic structures of bismuth (stannum) films at the CrI3 (CrBr3) interface.