The electronic structure and the O 1s x-ray absorption cross section of the perovskite-derived compound SrNbO3.4