Factors affecting uptake of optimal doses of sulphadoxine-pyrimethamine for intermittent preventive treatment of malaria in pregnancy in six districts of Tanzania