ELECTROMAGNETIC FIELD QUANTIZATION IN AN ABSORBING MEDIUM