In-situ electrical resistivity measurements: study of magnetic and phase transitions and solid-HDDR processes in Nd-Fe-B-type alloys