Predation and competition effects on the size diversity of aquatic communities