A comparative study on the functionality of S- and P-based lubricant additives by combined first principles and experimental analysis