Optimization of 3D conformal electron beam therapy in inhomogeneous media by concomitant fluence and energy modulation.