Valley pseudospin in monolayer MoSi2N4 and MoSi2As4