Applications of an algebraic quantization of the electromagnetic field