Cell size and actin architecture determine force generation in optogenetically activated cells