Surface energy of integrable quantum spin chains