Effects of size-dependent predation and competition on population and community dynamics