Description and evaluation of nuclear masses based on residual proton-neutron interactions