Rational solutions of multi‐component nonlinear Schrödinger equation and complex modified KdV equation