Electoral competition with ideologically biased voters