Casimir energies in light of quantum field theory