Example 1. Place four equal small balls on a plane so that the line connecting their centers forms a square, with each side having two balls touching, and place one more equal ball on top of these four balls so that it touches all of them. Given the highest point of the top ball is a. Find the radius $x$ of the small balls.