Bragg coherent diffractive imaging of defect dynamics in individual nanoparticles and thin film grains