Quantitative theory of X-ray interferometers based on dual phase grating: fringe period and visibility