Molecular photoionization cross sections by the Lobatto technique. II. core level photionization