A modification of the Petrov–Galerkin method for the transient convection–diffusion equation