Development and experimental evaluation of a general-purpose heavy-ion transport Monte Carlo code