Geometric engineering of quantum field theories