A high-resolution study of isotopic composition and chemical abundances of blue horizontal branch stars in the globular clusters NGC 6397 and NGC 6752