Polish election result seen as a defeat for religious extremism