Ab initio study of molecular adsorption on hydrogenated diamond (001) surfaces