Films and crystalline powder of PbI2 intercalated with ammonia and pyridine