Unpolarized and polarized densities based on a light-front quark–diquark model