A Generalized Neural Tangent Kernel Analysis for Two-layer Neural Networks