Bistable behavior of a vibrating tip near a solid surface