Genetics of cannibalism in a viviparous fish and its relationship to population density