Infinitesimal extensions of commutative algebras