The polarized spectral energy distribution of NGC 4151