Optimization of sample preparation using statistical methods: spectrophotometric determination of Fe and Co in pharmaceutical samples