Molecules on silicon: Self-consistent first-principles theory and calibration to experiments