Germans on trial over refugee attacks