Riesz Systems and Controllability of Heat Equations with Memory