Optimal finite element solutions to diffusion-convection problems in one dimension