Nearly 170 casualties as violence rocks chaotic Afghan elections