Espionage and child pornography, former CIA officer sentenced to 40 years