Energy spectra of fragments calculated with the model of the statistical multifragmentation of nuclei