Motion of complex patterns is computed from the perceived motions of their components