Migration has failed to solve Europe's demographic crisis: Polish president