Mode trapping in pulsating white dwarfs