First-principles Study of Electronic and Magnetic Properties of Two-dimensional Hexagonal Boron Nitride Doped with Germanium and Tin Atoms