The extended algebra of observables for Dirac fields and the trace anomaly of their stress-energy tensor