Parametrizing coarse grained models for molecular systems at equilibrium