A historic coin worth $525,000 that was stolen from a Polish museum has finally been returned by the Australian Federal Police (AFP) after it ended up in the hands of a Perth collector.