Generating Lie and gauge free differential (super)algebras by expanding Maurer–Cartan forms and Chern–Simons supergravity