Multifidelity machine learning methods for flow field prediction and aerodynamic shape optimization