Niger junta says will prosecute ousted president