Data analysis in β-spectroscopy with cryogenic detectors