Structural distortions in doped YMn2 compounds