An ellipse has the following properties: It is tangent to the $x$-axis at $(4,0).$ It is tangent to the $y$-axis at $(0,4).$ Its axes are parallel to the coordinate axes. Find the distance between the foci of the ellipse.