Islamic State loses ground on fronts in Syria, Iraq