Search for CP violation in D⁰→π⁻ π⁺ π⁰ decays with the energy test