Treatment planning for the layer-stacking irradiation system for 3D conformal heavy-ion radiotherapy