Localized adjoint methods: a new discretization methodology