Find the length of a diagonal of a square with a perimeter of 16.​