Spatial coherence properties of undulator radiation based on Thompson-Wolf two-pinhole measurement