New material lets smartphones detect toxic gases in seconds