How to measure the length of a molecule with quantum mechanics | Particle in a 1D box