Scientists have found a way to determine how old whale sharks are using the fallout from atomic bomb testing.