On the possibility of a gravitational shift of the spectral lines of O and B stars