Impact of plasma rotation on the linear physics of resistive wall modes in tokamaks