Atomic commutative monoids and their elasticity