Ab initio investigation of the topology and properties of three-dimensional clusters of water (H2O)n