Synthesis and optimization of nano-sized bacterial-based violacein pigment using response surface methodology