Swiss teachers have responded angrily to plans that would see them informing authorities about their undocumented students.