Deterministic assembly of a charged-quantum-dot–micropillar cavity device