Generation of arbitrary Dicke states in spinor Bose–Einstein condensates