Chemical Abundances from Inversions of Stellar Spectra: Analysis of Solar-Type Stars with Homogeneous and Static Model Atmospheres