Probing the stress effect on the electronic structure of graphite by resonant Raman spectroscopy