Quantitative description of short-range order and its influence on the electronic structure in Ag-Pd alloys