Energy conditions outside a dielectric ball