Topological realizations and fundamental groups of higher-rank graphs