Z2-cohomology and spectral properties of flat manifolds of diagonal type