What is the primary purpose of conducting a non-stress test (NST) in the third trimester of pregnancy?