Laser acceleration of charged particles in inhomogeneous plasmas .1.