Simulations of common-envelope evolution in binary stellar systems: physical models and numerical techniques (Living Reviews in Computational Astrophysics, 2023)