On the atomicity of monoid algebras