Vacuum-vacuum amplitudes in the theory of quantum radiation by mirrors in 1+1-space and charges in 3+1-space