A local spin density study of antiferromagnetism in La2 CuO4 and YBa2 Cu3 O6