Prosecutors explain how they decide to charge an officer