AI On The Battlefield: A Framework For Ethical Autonomy