MAXIMAL ACCELERATION OF PHOTONS WITH EFFECTIVE MASS. FREQUENCY SHIFT IN CAVITY RESONATORS