An equilateral triangle is constructed on each side of a square with side length $2,$ as shown below. The four outer vertices are then joined to form a large square. Find the side length of the small square.