Vito Lopez will quit as Brooklyn Democratic leader