From coherent to incoherent mismatched interfaces: A generalized continuum formulation of surface stresses