Non-local thermodynamic equilibrium inversions from a 3D magnetohydrodynamic chromospheric model