Tunable three-dimensional intensity distribution by a pure phase-shifting apodizer