Energy basis via decoherence