L2-Error bounds for approximate solutions of elliptic partial differential equations with Dirichlet-boundary conditions