Preparation of NaOH solutions