A light-front description of electromagnetic form factors for hadrons