Electron–phonon interaction in fan-shaped quantum dot and quantum wire