A method for conversion of hounsfield number to electron density and prediction of macroscopic pair production cross-sections