Wall crossing and quiver representations