Detailed abundances of the wide pairs of stars with and without planets: The binary systems 16 Cyg and HD 219542