High-temperature high-pressure annealing of diamond. Small-angle X-ray scattering and optical study