Daniel A. Spearin, 16th Maine Infantry