Exactly solvable spin-1 Ising–Heisenberg diamond chain with the second-neighbor interaction between nodal spins