Tensor-force effects on single-particle levels and proton bubble structure around the Z or N=20 magic number