Deep learning for terahertz image denoising in nondestructive historical document analysis