Diffuse LEED theory from surfaces partially covered with molecules. I. Calculation of the transition matrix of a molecule