Chancellor Angela Merkel was hailed as a hero when she threw open Germany's borders to hundreds of thousands of refugees. But over the following two years, with elections looming, the government toughened its stance on migrants. The FT's Guy Chazan reports on the impact