Determination of leakage resistance of Schottky contacts by photovoltage measurements