Auto-dimming rear-view mirror