Diamonds edge out Silver Ferns in thriller