Ab initio calculation of the electronic structure of Fe and Cr inter-layers