Modeling-based optimization study for an EDXRD system in a portable configuration,