Interplay of native point defects with ZnO Schottky barriers and doping