Path integral quantization of the relativistic Hopfield model