A mechanistic theory for aquatic food chain length