Local analysis of electrostatic modes in a two-fluid E × B plasma