Effective parameters for two-phase flow in a porous medium with periodic heterogeneities