Accurate localization and identification of six hard X-ray sources from Chandra and XMM-Newton data