Generalized parton distributions and transverse densities in a light-front quark–diquark model for the nucleons