Upscaling of solute plumes in periodic porous media through a trajectory based spatial Markov model