Chemical relaxation in dark- and light-adapted bacteriorhodopsin subjected to irradiation with modulated heat