Imprints of primordial voids on the cosmic microwave background