Authorities said gunman who opened fire in Krakow city’s market square ‘was fascinated by far-right ideologies’