xMem: A CPU-Based Approach for Accurate Estimation of GPU Memory in Deep Learning Training Workloads