Ultracompact generation of continuous-variable cluster states