Quantum mechanics of the de Broglie wave packet and a review of inelastic losses of UCN in bottles