Precise determination of the deuteron spin structure at low to moderate Q2 with CLAS and extraction of the neutron contribution