Monte Carlo simulation of resonance effects of electron transport in a spatially modulated electric field in Ar, N2 and their mixtures