Three Cameroonian soldiers have been sentenced to prison for their role in the killing of at least 21 civilians in the country's troubled Anglophone region.