A sol–gel based surface treatment for preparation of water repellent antistatic textiles