Switching and memory phenomena in anthracene thin films