Three terrorists gunned down in North Waziristan encounter