Energy spectra of massive two-body decay products and mass measurement