Poland's president Duda wins second term