What is the primary purpose of maintaining a proper chain of custody for evidence collected during an arrest?