New sensor for testing food freshness could spell the end of expiration dates