Effect of thermal annealing on the conduction- and valence-band quantum shifts in porous silicon