Nanotechnologists find a way of reducing defects in materials