Sulphur is mainly used for making fertilizer , car batteries , petroleum crude oil refining , water processing and mineral extraction .