Coalgebraic characterizations of context-free languages