Oscillations of the superconducting temperature induced by quantum well states in thin metallic films: numerical solution of the Bogoliubov-de Gennes equations