Local Casimir energy for solitons