Self-organized adaptation of a simple neural circuit enables complex robot behaviour