Modeling of orbital and attitude dynamics of nanosatellites controlled via active electrostatic charging