A Survey on 3D Scene Graphs: Definition, Generation and Application