Determination of RVE with consideration of the spatial effect