Cooperads and coalgebras as closed model categories