Comparing the effects of calcium and magnesium ions on accumulation and translocation of cadmium in rice