Electrical potential and current distribution for the quantized hall effect