Energy resolved imaging with a stratified phosphor detector