A Robust Optimization Approach to Deep Learning