Charge compensation in extremely large magnetoresistance materials LaSb and LaBi revealed by first-principles calculations