Entanglement-enhanced classical capacity of quantum communication channels with memory in arbitrary dimensions