calculate penetration depth (and optical properties) for X-rays