Dynamical Casimir–Polder force on a partially dressed atom in a cavity comprising a dielectric