Optimal control theory techniques for nitrogen vacancy ensembles in single crystal diamond