Ab Initio Theoretical Study of Substituted Dicarboxylic Acids Adsorbed on GaAs Surfaces: Correlation between Microscopic Properties and Observed Electrical Behavior