Monte carlo simulation of macromolecular ionization by nanoelectrospray