Electronic gap characterization at mesoscopic scale via scanning probe microscopy under ambient conditions