Curved A-infinity algebras and Landau-Ginzburg models