Coherent X-ray diffraction imaging of nanoengineered polymeric capsules