A paper-based lanthanide smart device for acid–base vapour detection, anti-counterfeiting and logic operations