Regular graphs with maximal energy per vertex