Libya bars ethnic, religious and tribal parties from elections