Built-in space charge at junctions between heavily doped and semi-insulating GaAs layers