Molecular simulation and theory of liquid crystals: chiral parameters, flexoelectric coefficients, and elastic constants