Measurement-based generation and preservation of cat and grid states within a continuous-variable cluster state