Preparation, crystal structure, and properties of the mixed-valence compound Nb3Se5Cl7