Poland’s foreign policy “will be hampered” by new president