Quantum bouncing ball on a lattice: An optical realization