Wave as camshaft, particularly for motor vehicles