Learning Hierarchical Polynomials of Multiple Nonlinear Features with Three-Layer Networks