Data acquisition and analysis system for the TPE-RX reversed-field pinch