Search for the double-beta decay of 82Se to the excited states of 82Kr with NEMO-3