Investigating the antioxidant mechanism of violacein by density functional theory method