Electrocaloric effect in the two spin-1/2 XXZ Heisenberg edge-shared tetrahedra and spin-1/2 XXZ Heisenberg octahedron with Dzyaloshinskii–Moriya interaction