Quantization of the electromagnetic field outside static black holes and its application to low-energy phenomena