Atmospheric neutrino spectrum reconstruction with JUNO