ENERGY SPECTRUM OF ENERGETIC PARTICLES ACCELERATED BY SHOCK WAVES: FROM FOCUSED TRANSPORT TO DIFFUSIVE ACCELERATION