Long range coherence of Bose gases in variable dimensionality