Proton-neutron pairing and binding energies of nuclei close to the N=Z line