Koszul duality and homotopy theory of curved Lie algebras