A comparative study of chemical precipitation and electrocoagulation for treatment of coal acid drainage wastewater