Modeling the charging of geosynchronous and interplanetary spacecraft using Nascap-2k