Preventing illegal tobacco and alcohol sales to minors through electronic age-verification devices