First-principles study of palladium atom adsorption on the boron- or nitrogen-doped carbon nanotubes