Model Photospheres for Late-Type Stars from the Inversion of High-Resolution Spectroscopic Observations: Groombridge 1830 and ϵ Eridani