Thermodynamics and energy loss in D dimensions from holographic QCD model