Discrete effects on boundary conditions of the lattice Boltzmann method for convection-diffusion equations with curved geometries