Counterdiabaticity and the quantum approximate optimization algorithm