Revised M11 exchange-correlation functional for electronic excitation energies and ground-state properties