Automatic generation of shallow electrically active dopant profiles from spreading resistance measurements