Conventional and inverse magnetocaloric and electrocaloric effects of a mixed spin-(1/2, 1) Heisenberg dimer