Design guidelines for assessing and controlling spacecraft charging effects