Search for heavy sterile neutrinos with SHiP