Optimal Microwave Control Pulse for Nuclear Spin Polarization and Readout in Dense Nitrogen‐Vacancy Ensembles in Diamond