The tech behind how Volkswagen tricked emissions tests