Photoelectric absorption cross sections with variable abundances