An L2-stability estimate for periodic nonuniform sampling in higher dimensions