Vector mode analysis of a Young interferometer