Stages of pregnancy and weaning influence the gut microbiota diversity and function in sows