A finite volume scheme for boundary-driven convection–diffusion equations with relative entropy structure