Stability of variable density rotating flows: Inviscid case and viscous effects in the limit of large Reynolds numbers