X-ray and electron microscopy studies of single-layer TaS2 and NbS2