Electron spectrum and optical constants of ferroelectrics with hydrogen bonds