Ab initio investigation of the adsorption of organic molecules at Si(111) and Si(100) surfaces