Coclosed G_2-structures inducing nilsolitons