The spelling of non-stressed vowels in the stem can be checked by putting stress on it (in another word with the same stem).

(Didn't you get the idea from further explanation?)