Magnetic ground state of the one-dimensional ferromagnetic chain compounds $M({\rm NCS})_2({\rm thiourea})_2$ ($M= \text{Ni}, \text{Co}$)