Component periods of non-principal-axis rotation and their manifestations in the lightcurves of asteroids and bare cometary nuclei