Flexoelectrically controlled surface bistable switching in nematic liquid crystals