Strong manipulation of the valley splitting upon twisting and gating in MoSe$_2$/CrI$_3$ and WSe$_2$/CrI$_3$ van der Waals heterostructures