Periods of multiple reflecting geodesics and inverse spectral results