X-ray diffraction study of corrugated semiconductor surfaces, quantum wires and quantum ☐es