Open charm tomography of cold nuclear matter