Constructing n-manifolds from spines