How complaints against police are investigated