Measurement-free preparation of grid states