Tensor part of the Skyrme energy density functional. II. Deformation properties of magic and semi-magic nuclei