Third order ab initio calculations of amplitudes of two‐photon absorption for ions across the lanthanide series