Magnetic and optical anisotropy in the infinite-chains iron oxide Sr2FeO3: A first-principle investigation