Reconstruction of crystal shapes by X-ray nanodiffraction from three-dimensional superlattices