Corner effect and separation in transonic channel flows