New Zealand in talks with Australia, UK to replace aging frigates