Using genome-wide measures of coancestry to maintain diversity and fitness in endangered and domestic pig populations