Regularization dependence of vacuum energy in arbitrarily shaped cavities