Generalized boundary triples, Weyl functions and inverse problems